/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { HybridData } from '../../napi/HybridData'

export class RuntimeConfig {
  public readonly heapSizeMB: number;

  public constructor(heapSizeMB: number) {
    this.heapSizeMB = heapSizeMB
  }
}

export  abstract class JavaScriptExecutor {
  private mHybridData: HybridData;

  protected constructor(hybridData: HybridData) {
    this.mHybridData = hybridData;
  }

  public close(): void {
    this.mHybridData.resetNative();
  }

  public abstract getName(): string;
}
